<?php
/**
 * 子任务表验证器
 */

namespace app\common\validate;

class UserSubOrderValidate extends Validate
{
    protected $rule = [
            'task_no|子任务编号' => 'require',
    'order_time|购买日期' => 'require',
    'order_no|订单编号' => 'require',
    'cash_time|打款时间' => 'require',

    ];

    protected $message = [
            'task_no.require' => '子任务编号不能为空',
    'order_time.require' => '购买日期不能为空',
    'order_no.require' => '订单编号不能为空',
    'cash_time.require' => '打款时间不能为空',

    ];

    protected $scene = [
        'add'  => ['task_no','order_time','order_no','cash_time',],
'edit' => ['task_no','order_time','order_no','cash_time',],

    ];

    

}
